package com.champ.mc.service.demo1;

public class Service1 {
    synchronized public void methonedA() {
        System.out.println("methodA begin");
        boolean isContentinueRun = true;
        while (isContentinueRun) {

        }
        System.out.println("methodA end");
    }
    synchronized public void methonedB() {
        System.out.println("methonedB begin");
        System.out.println("methonedB end");
    }
}
